package com.nageoffer.shortlink.project.dao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nageoffer.shortlink.project.dao.entity.base.BaseDo;
import lombok.*;

import java.util.Date;

/**
 * 短链接今日统计实体
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_link_stats_today")
public class LinkStatsTodayDO extends BaseDo {

    /**
     * 短链接
     */
    @TableField("full_short_url")
    private String fullShortUrl;

    /**
     * 日期
     */
    @TableField("date")
    private Date date;

    /**
     * 今日PV，默认值为0
     */
    @TableField("today_pv")
    private Integer todayPv = 0;

    /**
     * 今日UV，默认值为0
     */
    @TableField("today_uv")
    private Integer todayUv = 0;

    /**
     * 今日IP数，默认值为0
     */
    @TableField("today_uip")
    private Integer todayUip = 0;
}
